<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$SITE_NAME} {if $pagetitle ne ""} - {$pagetitle} {else}{if $uloggedId ne ""} - Member Area {/if} {/if}</title>
{if $pagekeywords ne ""}<meta name="keywords" content="{$pagekeywords}" />{elseif $SITE_KEYWORDS ne ""} <meta name="keywords" content="{$SITE_KEYWORDS}" /> {/if}
{if $pagedescription ne ""}<meta name="description" content="{$pagedescription}" />{elseif $SITE_DESCRIPTION ne ""} <meta name="description" content="{$SITE_DESCRIPTION}" /> {/if}


<!--Css-->
<link type="text/css" rel="stylesheet" href="{$SITE_URL}main.css" />

<link href="{$SITE_URL}video/video-js.css" rel="stylesheet" type="text/css">
<script src="{$SITE_URL}video/video.js"></script>
<script>
   _V_.options.flash.swf = "{$SITE_URL}video/video-js.swf";
</script>


<script type="text/javascript">
var SITEURL = '{$SITE_URL|@urldecode}';
var quick_pay_fee = '{$QUICK_PAY_FEE}';
var quick_pay_flat_fee = '{$QUICK_PAY_FLAT_FEE}';
</script>


<!--Scripts-->
<script src="{$SITE_URL}templates/js/jquery.js" type="text/javascript"></script>
<script src="{$SITE_URL}templates/js/json2.js" type="text/javascript"></script>
<script src="{$SITE_URL}templates/js/ajax.js" type="text/javascript"></script>
<script src="{$SITE_URL}templates/js/common.js" type="text/javascript"></script>


<link rel="stylesheet" type="text/css" href="{$SITE_URL}templates/css/tip-twitter.css" />


<script type="text/javascript" src="{$SITE_URL}templates/js/jquery.poshytip.js"></script>

<script type="text/javascript" src="{$SITE_URL}templates/js/ec_tooltip.js"></script>


{if $script eq "download"}
<script type="text/javascript" src="{$SITE_URL}templates/js/jquery.tipsy.js"></script>
<link href="{$SITE_URL}templates/styles/tipsy.css" rel="stylesheet" type="text/css" />
{/if}


{if $script eq "dashboard"}
{literal}
<script type="text/javascript">
    $(document).ready(function(){
		

	    $('#curmonth_graph').click(function(e){
			{/literal}
		    e.preventDefault();
			$('#graphFrame').attr('src', '{$SITE_URL}overview_graph.php?m=current');
		{literal}		
		});	

	    $('#lastmonth_graph').click(function(e){
			{/literal}
		    e.preventDefault();
			$('#graphFrame').attr('src', '{$SITE_URL}overview_graph.php?m=last');
		{literal}		
		});	
		
		
	});
</script>
{/literal}
{/if}



{if $script eq "stats"}

<script type='text/javascript'  src='https://www.google.com/jsapi'> </script>	
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>    

<script type = "text/javascript" > 
{if $country_analytics ne ""}
{literal}

google.load('visualization', '1', {
    packages: ['geochart']
});

function drawVisualization() {
    var data = google.visualization.arrayToDataTable([{
        /literal}{$country_analytics}{literal}
      ]);
    
      var geochart = new google.visualization.GeoChart(
          document.getElementById('c_map'));
      geochart.draw(data, {width: 650, height: 377, backgroundColor: "#ffffff"});
}
google.setOnLoadCallback(drawVisualization);
    {/literal}
	{/if}
	
	
    {if $ldata ne ""}
	{literal}
      google.load("visualization", "1", {packages:["corechart"]});
      
      function drawChart() {
        var data = google.visualization.arrayToDataTable([
         {/literal}{$ldata}{literal}

        ]);

        var chart = new google.visualization.LineChart(document.getElementById('a_chart'));
        chart.draw(data, {width: 650, height: 377, title: 'Clicks/Downloads', pointSize: 3, backgroundColor: "#ffffff"});
		
      }
	  
	  google.setOnLoadCallback(drawChart);
	  
	  {/literal}
{/if}

    {if $pdata ne ""}
	{literal}
      google.load("visualization", "1", {packages:["corechart"]});
      google.setOnLoadCallback(drawChart2);
      function drawChart2() {
        var data = google.visualization.arrayToDataTable([
         {/literal}{$pdata}{literal}

        ]);


        var chart = new google.visualization.LineChart(document.getElementById('premium_chart'));
        chart.draw(data, {width: 650, height: 377, title: 'Premium Earnings', pointSize: 3, backgroundColor: "#f6f6f6"});
      }
	  
	  {/literal}
{/if}


   
  </script>
{/if}


<script>
{literal}
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA', '');
  ga('send', 'pageview');
{/literal}
</script>


{include file="gateway_scripts.tpl"}

<LINK REL="SHORTCUT ICON" HREF="favicon.ico">

</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<div class="headerFull">

	<div class="wrapper">

		<div class="headerLogo"><a href="{$SITE_URL}"><img src="{$SITE_URL}images/header_logo.png" border="0"></img></a></div>

		<div class="headerLinks">

		<img src="{$SITE_URL}images/i_home.png" class="middle" alt="Home"><a href="{$SITE_URL}index.php">Home</a>
		{if $uloggedId lte "0"}
		<img src="{$SITE_URL}images/i_login.png" class="middle" alt="Login"><a href="{$SITE_URL}login.php">Login</a>
		<img src="{$SITE_URL}images/i_register.png" class="middle" alt="Register"><a href="{$SITE_URL}register.php">Register</a>
		<img src="{$SITE_URL}images/i_contact.png" class="middle" alt="Contact"><a href="{$SITE_URL}contact.php" style="padding-right: 0px;">Contact</a>
		{else}
		<img src="{$SITE_URL}images/i_register.png" class="middle" alt="Dashboard"><a href="{$SITE_URL}dashboard.php">Dashboard</a>
		<img src="{$SITE_URL}images/i_forum.png" class="middle" alt="Forum"><a href="{$SITE_URL}forum" target="_blank">Forum</a>
		<img src="{$SITE_URL}images/i_contact.png" class="middle" alt="Contact"><a href="{$SITE_URL}contact.php">Contact</a>
		<img src="{$SITE_URL}images/i_logout.png" class="middle" alt="Logout"><a href="{$SITE_URL}logout.php" style="padding-right: 0px;">Logout</a>
		{/if}

		</div>

	</div>

</div>